﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
namespace mscook.core.domain
{
    public class MagazineLabelMap:ClassMap<MagazineLabel>
    {
        public MagazineLabelMap()
        {
            Id(o => o.Id);
            Map(o => o.CreateTime);
            Map(o => o.IsDelete);
            Map(o => o.Version);
            Map(o => o.EntityIndex);

            Map(o=>o.MagazineId).Not.Nullable();
            Map(o=>o.PageNumber).Default("0");
            Map(o=>o.LoginUserId).Not.Nullable();
        }
    }
}
